import Add from '@/views/add/add.vue'
import Capsule from '@/views/capsule/capsule.vue'
import Check_in from '@/views/check_in/check_in.vue'
import Home from '@/views/home/home.vue'
import Market from '@/views/market/market.vue'
import Me from '@/views/me/me.vue'
import Order from '@/views/order/order.vue'


import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '',
      name: '首页',
      component: Home
    },
    {
      path: '/check_in',
      name: '验证',
      component: Check_in
    },
    {
      path: '/me',
      name: '个人中心',
      component: Me
    },
    {
      path: '/market',
      name: '口袋集市',
      component: Market
    },
    {
      path: '/order',
      name: '我的订单',
      component: Order
    },
    {
      path:'/capsule',
      name: '口袋胶囊',
      component: Capsule
    },
    {
      path: '/add',
      name: '产品制作',
      component: Add
    }
  ],
})

export default router
